package Wrap;

public class CatTest {
    public static void main(String[] args){
        Cat o = new Cat();
        System.out.println("名字："+o.name);
        System.out.println("年龄："+o.month);
        System.out.println("体重："+o.weight);

        Integer one = new Integer(100);
        Integer two = new Integer(100);
        System.out.println(one==two);//false
        Integer three = 100;//自动装箱
        System.out.println(three==100);//true,自动拆箱
        Integer four = 100;//实际上执行的是 Integer four = Integer.valueOf(100);
        System.out.println(three==four);//true
        Integer five = 200;
        System.out.println(five==200);//true
        Integer six =200;
        System.out.println(five==six);//false

    }
}
